/* 
* Copyright (C) 2011-2018 ShenZhen iBOXSaaS Information Technology Co.,Ltd. 
* 
* All right reserved. 
* 
* This software is the confidential and proprietary 
* information of iBOXSaaS Company of China. 
* ("Confidential Information"). You shall not disclose 
* such Confidential Information and shall use it only 
* in accordance with the terms of the contract agreement 
* you entered into with iBOXSaaS inc. 
* 
*/

 package org.iboxpay.open.common.constants;

 /**
  * 用于保持请求和回调的状态
  * ParamEnums.java
  * @author xuxiao
  * @date 2018/06/25
  */
 public enum ParamEnums {
     /** 应用id */
     appId("appId"),
     /** 用户id */
     userId("userId"),
     /** 响应类型 */
     responseType("responseType"),
     /** 响应类型的值 */
     responseTypeValue("code"),
     /** 作用域 */
     scope("scope"),
     /** 用于保持请求和回调的状态 */
     state("state"),
     /** 应用凭据 */
     appSecret("appSecret"),
     /** 授权码 */
     authCode("authCode"),
     /** 授权类型 */
     grantType("grantType"),
     /** 授权码授权类型*/
     authorizationCodeGrant("authorization_code"),
     /** 客户端授权类型 */
     clientCredentialsGrant("client_credentials"),
     /** 刷新token授权类型 */
     refreshTokenGrant("refresh_token"),
     /** tokenId */
     tokenId("tokenId"),
     /** 响应码 */
     resultCode("resultCode"),
     /** 错误描述 */
     errorDesc("errorDesc"),
     /** 开放平台用户id */
     openId("openId"),
     /** token类型 */
     tokenType("tokenType"),
     /** 访问token */
     accessToken("accessToken"),
     /** 访问token有效时间 */
     accessTokenExp("accessTokenExp"),
     /** 刷新token */
     refreshToken("refreshToken"),
     /** 刷新token有效时间 */
     refreshTokenExp("refreshTokenExp"),
     /** 授权申请地址 */
     authApplyUrl("authApplyUrl"),
     /** 作用域集合 */
     scopeMap("scopeMap"),
     /** 确认地址 */
     confirmUrl("confirmUrl"),
     ;
     
     
     private String code;

    private ParamEnums(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }
     
}
